
    
import { applyMiddleware, createStore } from "redux";

import reducer from '../redux2/store/reduxs/index' 
import logger from "redux-logger";  
import thunk from "redux-thunk";
 export const store= createStore(reducer,applyMiddleware(logger,thunk))


// function reducer(state={count:0},action) {
    
//     switch (action.type) {
//         case 'add':
//                 return {
//                     ...state,
//                     count:state.count+action.payload
//                 }
            
    
//         default:
//             return state
//     }

    
// }

